//
//  SignalAssistorMainTableViewController.h
//  Portable Traffic Signal Assistor
//
//  Created by Hao Xu on 3/31/12.
//  Copyright (c) 2012 TTU. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "TableSection.h"
#import "SignalAssistorDetailEditViewController.h"
#import "XMLParser.h"
#import "Signal.h"
#import "TrafficSignalTimer.h"

@interface SignalAssistorMainTableViewController : UITableViewController <UIPickerViewDelegate, UIAlertViewDelegate>
{
    NSMutableArray *_sections;
    TableSection *_addTimerGroupSection;
//    UITextField *_syncTimeTextField;
    
    UIButton *_addTimerGroupButton;
    
    NSMutableArray *_timerGroupSectionList;
    
    UIDatePicker *_timePicker;
    
}
@property (nonatomic,retain) NSMutableArray *sections;
@property (nonatomic,retain) TableSection *addTimerGroupSection;
//@property (nonatomic,retain) UITextField *syncTimeTextField;
@property (nonatomic,retain) UIButton *addTimerGroupButton;

@property (nonatomic,retain) NSMutableArray *timerGroupSectionList;
@property (nonatomic,retain) UIDatePicker *timePicker;

@property (retain,nonatomic) SignalAssistorDetailEditViewController *detailEditController;
@property (nonatomic) BOOL allowDelete;
@property (assign) id publicSender;
@property (nonatomic,retain) NSTimer *timer;

- (void) clickAddTimerGroupButton;
- (void) selectTime:(id)sender;
- (void) removeTimerGroupByID:(id) sender;

@end
